The phrase "to fit the dress" means that someone's body shape or size matches well with a particular dress, making it look good on them.